// 定义一些常量
let x_PI = (3.14159265358979324 * 3000.0) / 180.0;
let PI = 3.1415926535897932384626;
let a = 6378245.0;
let ee = 0.00669342162296594323;

let GeoServer = {
  tnGeoWmsUrl: '/geoserver/YsjAgr/wms',
  ntGeoWorkspace: 'YsjAgr',
  layersName: {
    baseLayerinnine:'tn_yx_202108',
    baseLayerineight:'tn_yx_202109',
    baseLayerJd:'tongnanqu_jiedao',
    beforeSzLayerSd:'tn_sd_bebofe',
    beforeSzLayerGd:'tn_gd_bebofe',
    afterSzLayerSd:'tn_sd_sz'
  },



  parameters : {
    transparent: true,
    format: "image/png",
  },

  compare2d_2018_2016: {
  },
  clon:105.792658,
  clat:30.130551,
  cheight:5000

}

export function getGeoServer(){
  return GeoServer;
}





/**
 * @param {string} path
 * @returns {Boolean}
 */
export function getParamString(obj, existingUrl, uppercase){
  var params = [];
  for (var i in obj) {
    params.push(encodeURIComponent(uppercase ? i.toUpperCase() : i) + '=' + encodeURIComponent(obj[i]));
  }
  return ((!existingUrl || existingUrl.indexOf('?') === -1) ? '?' : '&') + params.join('&');
}

export { GeoServer }
